package com.xh.springCloud.hystrix.client;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by xuhao on 2016/11/16.
 */
@RestController
public class ClientController {
    @Autowired
    ClientService clientService;

    @RequestMapping("/test")
    public String invoke(){
        String test = clientService.test();
        System.out.println("yes");
        return test;
    }
}
